<template>
  <div class="little-page-view">
    <div class="top-area">
      <div class="user"><van-icon name="friends-o" /></div>
      <div class="title">小纸条</div>
      <div class="icon-right">
        <div class="icon replay"><van-icon name="replay" /></div>
        <div class="icon add"><van-icon name="add-o" /></div>
      </div>
    </div>
    <div class="menu">
      <div class="icon-wrap" v-for="(item, index) in iconData" :key="index">
        <div class="icon"><van-icon :name="item.icon" /></div>
        <div class="tip">{{ item.title }}</div>
      </div>
    </div>
    <div class="main-none-tip">
      <div class="none-bg"></div>
      <div class="tip-title">这里什么都没有哦~</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "LittlePageView",
  data() {
    return {
      iconData: [
        {
          title: "赞和投票",
          icon: "good-job-o",
        },
        {
          title: "评论和@",
          icon: "chat-o",
        },
        {
          title: "新增关注",
          icon: "friends-o",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.little-page-view {
  width: 100vw;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
  .top-area {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
    .user {
      width: 35px;
      height: 35px;
      border-radius: 999px;
      text-align: center;
      line-height: 35px;
      font-size: 25px;
    }
    .title {
      font-weight: 600;
      font-size: 16px;
    }
    .icon-right {
      display: flex;
      .icon {
        width: 35px;
        height: 35px;
        border-radius: 999px;
        margin-right: 20px;
        text-align: center;
        line-height: 35px;
        font-size: 25px;
        &:last-of-type {
          margin-right: 0;
        }
      }
    }
  }
  .menu {
    display: flex;
    margin-top: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px 20px;
    border-bottom: 1px solid #ddd;
    .icon-wrap {
      text-align: center;
      .icon {
        font-size: 35px;
        margin-bottom: 10px;
      }
    }
  }
  .none-bg {
    width: 150px;
    height: 150px;
    background-color: red;
    margin: 100px auto 0;
    background: url("@/assets/images/Snipaste_2022-11-25_17-30-30.jpg")
      no-repeat center center;
    background-size: cover;
  }
  .tip-title {
    color: #999;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
}
</style>